package com.wumai.keystrokes.events;

import com.wumai.keystrokes.utils.KeyConfigManger;
import net.minecraftforge.event.AddReloadListenerEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

/**
 * @author trick12138
 * @date 2025-08-20
 */
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.FORGE)
public class ResourceEvents {

    @SubscribeEvent
    public static void onResourceReload(AddReloadListenerEvent event) {
        // 在游戏资源重载时加载配置
        KeyConfigManger.getInstance().loadConfig();
    }
}